client.on("presenceUpdate", function (oldPresence, newPresence) { console.log(oldPresence, newPresence); }
This doesn't show anything on any logs even though no error shows up on logs discordjs v12.5.3.
hello there if your trying to set the bot's client presence then i would recommend to do the client.user.setPresence function and if you wanna console the clients status then you can do console.log(status)
let status;
switch (client.presence.status) {
case "online":
status = "๐ฅณ Online";
break;
case "dnd":
status = "๐ก Do Not Disturb";
break;
case "idle":
status = "๐ Idle";
break;
case "offline":
status = "๐ต Offline";
break;
}
console.log(status);